package cn.simon.free.redis.component;

import cn.simon.free.redis.config.SpringContext;
import cn.simon.free.redis.jedis.hash.JedisHashSupport;
import cn.simon.free.redis.jedis.key.JedisKeySupport;
import cn.simon.free.redis.jedis.list.JedisListSupport;
import cn.simon.free.redis.jedis.sorted.set.JedisSortedSetSupport;
import cn.simon.free.redis.jedis.string.JedisStringSupport;

/**
 * redis静态类
 *
 * @author simon
 * @date 2021/5/14 11:49
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public class RedisSupport {

    public static final JedisKeySupport jedisKeySupport;
    public static final JedisStringSupport jedisStringSupport;
    public static final JedisHashSupport jedisHashSupport;
    public static final JedisListSupport jedisListSupport;
    public static final JedisSortedSetSupport jedisSortedSetSupport;

    static {
        jedisKeySupport = SpringContext.getBean(JedisKeySupport.class);

        jedisStringSupport = SpringContext.getBean(JedisStringSupport.class);
        jedisHashSupport = SpringContext.getBean(JedisHashSupport.class);
        jedisListSupport = SpringContext.getBean(JedisListSupport.class);
        jedisSortedSetSupport = SpringContext.getBean(JedisSortedSetSupport.class);

    }
}
